﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="staff.aspx.cs" Inherits="basic_staff" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title><link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
   <div>
        <center>
        <div class="wrap">
	<div class="top">
    	<div class="top1">
      
           
        </div>
        
     </div>
            
        
    <div class="shortnfo">
         <h2>当前位置：基本信息->员工信息</h2>
     <div class="menuitems">
        
       

           <ul>
                      <li><a id="A1" href="../master/index.aspx" runat="server">首页</a></li>
                       <li><a id="A2" href="~/basic/staff_add.aspx" runat="server">添加员工</a></li>
                    
                      <li><a href="../master/basic.aspx">退出</a></li>
                  </ul>
         
     </div>
    </div>

<div class="content">
     <table border="0" style="table-layout:fixed;width:100%;text-align:left;height:100%" >
         <tr>
             <td>职工号：<br /><asp:TextBox ID="staffid" runat="server"></asp:TextBox>
             </td>
             <td>姓名：<br /><asp:TextBox ID="staffname" runat="server" ></asp:TextBox>
             </td>
           
             <td>
                 <br />
                 <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" />

             </td>
             
             
         </tr>
  <tr>
      <td colspan="3">
          <asp:GridView ID="G1" runat="server" AutoGenerateColumns="False" DataKeyNames="职工号" Height="100%" Width="100%" AllowPaging="true" PageSize="5" OnPageIndexChanging="G1_PageIndexChanging" >
              <Columns>
                  <asp:BoundField DataField="职工号" HeaderText="职工号" ReadOnly="True" SortExpression="职工号" >
                  <FooterStyle HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="姓名" HeaderText="姓名" SortExpression="姓名" >
                  <FooterStyle HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="所在部门" HeaderText="所在部门" SortExpression="所在部门" >
                  <FooterStyle HorizontalAlign="Center" />
                  </asp:BoundField>
                  <asp:BoundField DataField="职位" HeaderText="职位" SortExpression="职位" >
                  <FooterStyle HorizontalAlign="Center" />
                  </asp:BoundField>
              </Columns>
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              <RowStyle HorizontalAlign="Center" Height="47px" />
          </asp:GridView>
          <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="select *  from staff "></asp:SqlDataSource>
      </td>
  </tr>
</table>
    </div>
       <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>
      	
    </div>
    
            </center>
</div> 
        
  
    </form>
</body>
</html>
